package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserSkinVolumeData;
import com.yanqu.road.entity.player.UserSkinVolumeRewardData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * @author ：zfr
 * @date ：2021/4/29 15:51
 */
public class UserSkinVolumeBusiness {
    public static UserSkinVolumeData getSkinVolumeData(long userId) {
        return DaoHelper.getUserSkinVolumeDataDaoImpl().getSkinVolumeData(userId);
    }

    public static boolean addUserSkinVolumeData(UserSkinVolumeData userSkinVolumeData) {
        return DaoHelper.getUserSkinVolumeDataDaoImpl().add(userSkinVolumeData);
    }

    public static boolean updateUserSkinVolumeData(UserSkinVolumeData userSkinVolumeData) {
        return DaoHelper.getUserSkinVolumeDataDaoImpl().update(userSkinVolumeData);
    }

    public static Map<Integer, UserSkinVolumeRewardData> getSkinVolumeRewardData(long userId) {
        return DaoHelper.getUserSkinVolumeRewardDataDaoImpl().getSkinVolumeRewardData(userId);
    }

    public static boolean addUserSkinVolumeRewardData(UserSkinVolumeRewardData userSkinVolumeRewardData) {
        return DaoHelper.getUserSkinVolumeRewardDataDaoImpl().add(userSkinVolumeRewardData);
    }

    public static boolean updateUserSkinVolumeRewardData(UserSkinVolumeRewardData userSkinVolumeRewardData) {
        return DaoHelper.getUserSkinVolumeRewardDataDaoImpl().update(userSkinVolumeRewardData);
    }
}
